package com.hc.constant;

public interface RedisConst {
    /**
     * 商品类别
     */
    String CATEGORY = "category";
    /**
     * 商品
     */
    String PRODUCT = "product";

    /**
     * 省份
     */
    String PROVINCE = "province";

    /**
     * 城市
     */
    String CITY = "city";

    /**
     * 活跃用户
     */
    String User = "user";

    /**
     * Redis中缓存的活跃用户的数量
     */
    Integer CACHED_ACTIVE_USER_AMOUNT = 20;

    /**
     * 缓存：键-市编号，值-省编号
     */
    String PROVINCE_CITY = "province_city";

    /**
     * 县区
     */
    String COUNTRY = "country";

    /**
     * 缓存：键-市编号，值-该市下辖的Country列表
     */
    String CITY_COUNTRY = "city_country ";

    /**
     * 首页缓存相关
     */
    interface Index {
        /**
         *
         */
        String name = "index";
        /***
         * 轮播图
         */
        String CAROUSEL = "carousel";
        /**
         * 广告
         */
        String AD = "ad";
        /**
         * 分隔
         */
        String DIVIDER = "divider";
        /**
         *
         */
        String CATEGORY_WITH_SKU = "categoryWithSku";
        /**
         * 促销
         */
        String PROMOTION = "promotion";
        /**
         * 推荐
         */
        String RECOMMEND = "recommend";
    }
}